package Logic.EventSample.Scene;

import FrameWork.Event.Trigger;
import FrameWork.Model.Player;
import org.springframework.stereotype.Component;

@Component
public class EnterSceneTrigger extends Trigger<AfterEnterSceneHandler> {

    public void fire(int oldSceneId,Player player){
        for (AfterEnterSceneHandler handler:getEventHandlers()){
            handler.onEnter(oldSceneId,player);
        }
    }

}
